package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.front.pojo.TbProvinces;
import com.dongdongshop.front.pojo.TbProvincesExample;
import com.dongdongshop.front.service.ProvincesService;
import com.dongdongshop.mapper.TbProvincesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Service
public class ProvincesServiceImpl implements ProvincesService {

    @Autowired
    private TbProvincesMapper provincesMapper;

    @Override
    public List<TbProvinces> getProvinces() {
        List<TbProvinces> provincesList = provincesMapper.selectByExample(new TbProvincesExample());
        return provincesList;
    }
}
